package main

import (
	"fmt"
	"gitee.com/mirzatsoft/wakit/app"
	"gitee.com/mirzatsoft/wakit/config"
	"gitee.com/mirzatsoft/wakit/modules/user"
)

func main() {
	fmt.Println("Wakit")
	if err := config.Init(); err != nil {
		panic(err)
	}
	cfg := config.GetConfig()
	fmt.Println("Config:", cfg)
	wa, _ := app.NewWebApp(cfg)
	_ = wa.Register(user.NewModule())
	_ = wa.Start()
}
